/*
 * Copyright (c) 2017 22420103@QQ.COM 版权所有
 */
package com.lehe.common.exceptions;

/**
 * 平台service的异常基础类型。
 *
 * @author 王丹
 * @since 2017-02-22
 */
public class LHServiceException extends LHException {

    private static final long serialVersionUID = 1L;

    /** 错误码 */
	private String errorCode;

	public LHServiceException() {
		super();
	}

	public LHServiceException(String msg) {
		super(msg);
	}

	public LHServiceException(String msg, Throwable t) {
		super(msg, t);
	}

	public LHServiceException(String errorCode, String msg) {
		this(msg);
		this.errorCode = errorCode;
	}

	public LHServiceException(String errorMessage, String msg, Throwable t) {
		this(msg, t);
		this.errorCode = errorCode;
	}

    public String getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}
